var tasks = mgr.query("from Task");
log.info("Updating task descriptions...");
var count = 0;
for (var i = 0; i < tasks.size(); i++) {
  var task = tasks.get(i);
  var description = task.getOldDescription();
  if (description != null) {
    count++;
    task.setOldDescription(null);
    task.setDescriptionContent(new WikiContent(description, WikiStyle.fitnesse));
    updater.update(task);
  }
}
log.info("Updated " + count + " tasks.");
